package com.dongdongshop.service;

import com.dongdongshop.data.PageResult;
import com.dongdongshop.domain.rep.SpecificationReq;
import com.dongdongshop.domain.res.SpecificationOptionRes;
import com.dongdongshop.domain.res.SpecificationRes;

import java.util.List;

public interface SpecService {

    /**
     * 规格分页查询
     * @param specificationReq
     * @return
     */
    PageResult queryPage(SpecificationReq specificationReq);


    /**
     * 通过specId查询Option所有数据
     * @param id
     * @return
     */
    List<SpecificationOptionRes> queryOptionBySpecId(Long id);


    /**
     * 增加修改操作
     * @param specificationReq
     * @return
     */
    void save(SpecificationReq specificationReq);

    /**
     * 规格删除操作
     * @param id
     */
    void delete(Long id);

    /**
     * 规格批量删除操作
     * @param ids
     */
    void batchRemove(List<Integer> ids);
}
